<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>本校学生信息展示</title>
</head>
<body>

    <center>

        <p>下列为本校学生信息，请过目；</p>

        <table width="100%" border="1">
        <tr>
            <td>ID</td>
            <td>姓名</td>
            <td>年龄</td>
            <td>报名时间</td>
            <td>操作</td>
        </tr>

        <c:forEach items="${students}" var="student">
            <tr>
                <td>${student.stid}</td>
                <td>${student.sname}</td>
                <td>${student.sage}</td>
                <td>${student.applyTime}</td>
                <td><a href="updateStu?sid=${student.stid}">修改</a> <a href="deleteStu?sid=${student.stid}">删除</a></td>
            </tr>
        </c:forEach>

        </table>

        <p><a href="index.jsp">返回首页</a></p>

    </center>

</body>
</html>
